package by.amakarevich.dataaccess;

import java.util.List;

import javax.persistence.metamodel.SingularAttribute;

import by.amakarevich.datamodel.Booking;
import by.amakarevich.datamodel.DeliveryAddress;

public interface DeliveryAddressDao extends AbstractDao<Long, DeliveryAddress>{

    List<DeliveryAddress> getAllDeliveryAddressByUser(SingularAttribute<DeliveryAddress, ?> attr, boolean ascending, int startRecord, int pageSize);
    
	void deleteDeliveryAddress(Long id);
	
	DeliveryAddress getByBooking(Booking booking);
}
